package org.tissou.client.DonneesAAfficher;


import org.tissou.client.Services.ProprietaireInfos;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;


/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 03/03/2009
 * Time: 21:12:32
 * To change this template use File | Settings | File Templates.
 */
public class Element_Proprietaire implements IsSerializable,Element {
  ProprietaireInfos proprietaire;

  public Element_Proprietaire() {
  }

  public ProprietaireInfos getProprietaire() {
    return proprietaire;
  }

  public Element_Proprietaire(ProprietaireInfos proprietaire) {

    this.proprietaire = proprietaire;
  }

  public Widget ConvertirEnWidget() {
    return new HTML(proprietaire.getNom());
  }

  public Element clone() {
    return new Element_Proprietaire();
  }

  public void setCaracteristique(ProprietaireInfos caracteristique) {
    proprietaire = caracteristique;
  }
}